package reno.activity.mo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class RewardPool {

    private static volatile RewardPool rewardPool;

    private RewardPool() {}

    public static RewardPool getInstance() {
        if (rewardPool == null) {
            synchronized (RewardPool.class) {
                if (rewardPool == null) {
                    rewardPool = new RewardPool();
                }
            }
        }
        return rewardPool;
    }

    private Map<Long, List<Reward>> rewardPoolMap = new HashMap<>();

    private Map<Long, Map<Long,Reward>> rewardResultMap = new HashMap<>();

    public Map<Long, List<Reward>> getRewardPoolMap() {
        return rewardPoolMap;
    }

    public void setRewardPoolMap(Map<Long, List<Reward>> rewardPoolMap) {
        this.rewardPoolMap = rewardPoolMap;
    }

    public Map<Long, Map<Long, Reward>> getRewardResultMap() {
        return rewardResultMap;
    }

    public void setRewardResultMap(Map<Long, Map<Long, Reward>> rewardResultMap) {
        this.rewardResultMap = rewardResultMap;
    }
}
